export interface User {
  username: string; // 手机号
  nickname: string; // 昵称
  VIPExpire: string;
}

export interface AgentGroup {
  id: number;
  name: string;
}

export interface Message {
  id: string;
  content: string;
  isUser: boolean;
  timestamp?: Date;
}

export interface Agent {
  ID: number;
  AIName: string;
  AIDesc: string;
  SysHint: string;
  AIGroup: string;
  AIAvatar: string;
  isHot?: boolean;
}

export interface ChatMessage {
  role: string;
  message: string;
}

export interface ChatRequest {
  model: string;
  id: number;
  history: ChatMessage[];
}

export interface ChatResponse {
  role: string;
  content: string;
}

export interface ChatHistoryRecordRes {
  id: number;
  timestamp: string;
  history: string;
  AIGroup: string;
  AIName: string;
  agentType: string;
  agentTopic: string;
  agentId?: string; // 关联的Agent ID，用于恢复聊天时选择正确的Agent
}

export interface ChatHistoryRecord {
  id: number;
  key: string;
  timestamp: string;
  history: ChatMessage[];
  AIGroup: string;
  AIName: string;
  agentType: string;
  agentTopic: string;
  agentId?: string; // 关联的Agent ID，用于恢复聊天时选择正确的Agent
}
